package cn.tedu;

import cn.tedu.domain.Student;
import cn.tedu.utils.MybatisUtils;
import org.apache.ibatis.session.SqlSession;
import java.util.List;

public class MyApp2 {
    public static void main(String[] args){
        SqlSession sqlSession = MybatisUtils.getSqlSession();
        String sqlId="cn.tedu.dao.StudentDao.insertStudent";
        Student student = new Student(2, "赵云", "271418996@qq.com", 22);
        sqlSession.insert(sqlId, student);
        sqlSession.close();
    }
}
